package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.GlryShjz;
import com.corpcredit.service.GenericManager;

public class GlryShjzList extends BasePage implements Serializable {
    private GenericManager<GlryShjz, Long> glryShjzManager;

    public void setGlryShjzManager(GenericManager<GlryShjz, Long> glryShjzManager) {
        this.glryShjzManager = glryShjzManager;
    }

    public GlryShjzList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getGlryShjzs() {
        return sort(glryShjzManager.getAll());
    }
}

